﻿<controls:ChildWindow x:Class="IndexMarkSilverlightClient.Views.IndexSettings"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:my="clr-namespace:IndexMarkSilverlightClient.Views.Controls" xmlns:ReportsControls="clr-namespace:IndexMarkSilverlightClient.Views.Controls.ReportsControls" xmlns:Controls="clr-namespace:SharedCode.Controls;assembly=SharedCode" Width="600" Height="400" 
           Title="Настройки">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <controls:TabControl HorizontalAlignment="Left" Width="578" Height="326" Grid.Row="0" Name="tabControl1" VerticalAlignment="Top">
            <controls:TabItem Header="Структура УГТУ" HorizontalAlignment="Left" x:Name="USTUItem">
                <ReportsControls:USTUTreeView x:Name="USTU"/>
            </controls:TabItem>
            <controls:TabItem Header="Структура ИС" HorizontalAlignment="Left" x:Name="ISItem">
                <my:ISTreeView x:Name="ISTree"/>
            </controls:TabItem>
            <controls:TabItem Header="Категории ИС" HorizontalAlignment="Left" x:Name="CatsItem">
                <ReportsControls:CategoryCheckListBox x:Name="CategoriesCtrl" />
            </controls:TabItem>
            <controls:TabItem Header="Настройки вывода" HorizontalAlignment="Left" x:Name="SettingsItem">
                <StackPanel Orientation="Vertical">
                    <RadioButton Content="Компактный" x:Name="CompactRB" ToolTipService.ToolTip="Выводятся только основные разделы ИС" IsChecked="True"/>
                    <RadioButton Content="Полный" x:Name="FullRB" ToolTipService.ToolTip="Выводятся все разделы ИС" IsChecked="False"/>
                </StackPanel>
            </controls:TabItem>
        </controls:TabControl>

        <Button x:Name="CancelButton" Content="Отмена" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
        
        <Controls:LoadingBar Action="загрузка"  Grid.RowSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center" x:Name="loadingBar"/>
        
    </Grid>
</controls:ChildWindow>